package com.hehe.conversion.hehemiddleware.common;

import lombok.Data;

@Data
public class ApiResponse<T> {
    //	请求状态. 1:成功, 0:失败
    private int result;
    private T response;
    //错误码
    private int error;
    private String message;
    // 构造方法
    public ApiResponse(int result, T response) {
        this.result = result;
        this.response = response;
    }
    public ApiResponse(int result, T response,String message,int error) {
        this.result = result;
        this.response = response;
        this.message=message;
        this.error=error;
    }
}
